﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" 
    AutoEventWireup="true" CodeBehind="ContactSummary.aspx.cs" Inherits="Evpo.ContactData.UI.ContactSummary" %>
<%@ Register TagPrefix="local" TagName="ContactEdit" Src="~/ContactEdit.ascx"  %>
<%@ Register TagPrefix="local" TagName="LinkedGroup" Src="~/LinkedGroup.ascx"  %>
<%@ Register TagPrefix="local" TagName="AddressEdit" Src="~/AddressEdit.ascx" %>

<%@ Import Namespace="Evpo.ContactData.UI" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link rel="Stylesheet" href="Styles/ContactEditForm.css" type="text/css" />
    <link href="Styles/ContactInList.css" rel="Stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <link href="Styles/ContactInList.css" rel="Stylesheet" type="text/css" />
    <asp:SiteMapPath ID="SiteMapPath1" runat="server">
    </asp:SiteMapPath>
    <local:ContactEdit runat="server" ID="uiContactEdit" IsReadOnly="true" />
    <a href='<%#ContactEditFormUrl()%>'>Edit contact details</a>
    <br/>

    <h1>Address</h1>
    <local:AddressEdit runat="server" ID="uiAddressEdit" IsReadOnly="true" 
        Visible='<%# IsAddressVisible %>' AddressID='<%# AddressID %>'/>
    <a href='<%# AddressSelectorUrl() %>'>Select or create address</a>
    &nbsp;
    <asp:HyperLink runat="server" Visible='<%# IsAddressVisible %>' NavigateUrl='<%# EditAddressUrl %>' Text="Edit address" 
    />

    <br />
    <h1>Relationships</h1>
    <fieldset>
    <local:LinkedGroup runat="server" ID="uiLinkedGroup" IsReadOnly="true" />
    </fieldset>
    <a href='<%#LinkedGroupEditFromUrl()%>'>Edit relationships</a>
    <br />
    <br />

    
</asp:Content>
